<template>
  <div class="listItem">
    <div class="leftTips">
      <img :src="require('@/assets/img/bg1.png')" alt="" />
      <p>爵士</p>
    </div>
    <div class="right">
      <div class="title">
        花样面食

        <div class="dbzh">对标账号：无</div>
      </div>
      <div class="cont">
        还在单一的蒸馒头吗？？？ 看李姐的花样面食分享教程教你每日不重样...
      </div>
      <div class="min">
        <div class="sur">
          <span><i class="iconfont icon-shoucang"></i>333</span>
          <span><i class="iconfont icon-dianzan"></i>333</span>
        </div>

        <div class="price"><span>￥200</span></div>
      </div>
      <div class="bot">
        <div class="btn">智能合约</div>
        <div class="btn1">购买</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    data: {
      type: Object,
      defualt: {},
    },
  },
  data() {
    return {
      text: "征稿中",
    };
  },
};
</script>
<style lang="scss" scoped>
.listItem {
  width: 490px;
  height: 280px;
  background: #ffffff;
  box-shadow: 0px 0px 21px 0px rgba(17, 16, 16, 0.07);
  border-radius: 4px;
  display: flex;
  margin-top: 20px;
  .leftTips {
    width: 50px;
    color: #fff;
    box-sizing: border-box;
    position: relative;
    p {
      position: absolute;
      top: 0;
      left: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      bottom: 0;
      line-height: 24px;
      right: 0;
      writing-mode: vertical-lr; /*从左向右 从右向左是 writing-mode: vertical-rl;*/
      writing-mode: tb-lr; /*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl；*/
    }
  }
  .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 30px;
    & > div {
      margin: 0 20px;
    }
    .title {
      font-weight: bold;
      color: #333333;
      font-size: 16px;
    }
    .dbzh {
      height: 14px;
      font-size: 14px;
      font-weight: 400;
      color: #333333;
      margin-top: 8px;
    }
    .cont {
      font-size: 14px;
      font-weight: 400;
      color: #666666;
    }
    .price {
      font-weight: 400;
      font-size: 14px;
      color: #686f7a;
      span {
        font-weight: bold;
        color: #ff4444;
        font-size: 20px;
      }
    }
    .min {
      display: flex;
      align-items: center;
      justify-content: space-between;
      .sur {
        span {
          padding-right: 20px;
          color: #686f7a;
          font-size: 14px;
        }
      }
    }
    .bot {
      display: flex;
      justify-content: center;
      margin: 0;
      padding: 20px;
      align-items: center;
      border-top: 1px solid #e5e5e5;
      & > div {
        width: 92px;
        height: 36px;
        border-radius: 4px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-weight: bold;
        margin-right: 20px;
      }
      .btn {
        background: rgba(246, 246, 246, 0.15);
        border: 1px solid #9d9d9d;
        color: #333333;
      }
      .btn1 {
        color: #2eb0c6;
        border: 1px solid #2eb0c6;
        background: rgba(46, 176, 198, 0.15);
      }
    }
  }
}
</style>